package com.ruoyi.user.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 老人信息对象 person_info
 * 
 * @author ruoyi
 * @date 2025-03-24
 */
public class PersonInfo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 用户id */
    private Long personId;

    /** 养老院id */
    @Excel(name = "养老院id")
    private Long communityId;

    /** 姓名 */
    @Excel(name = "姓名")
    private String userName;

    /** 手机号 */
    @Excel(name = "手机号")
    private String mobile;

    /** 密码 */
    @Excel(name = "密码")
    private String password;

    /** 性别(男/女) */
    @Excel(name = "性别(男/女)")
    private String sex;

    /** 年龄 */
    @Excel(name = "年龄")
    private Long age;

    /** 身份证号 */
    @Excel(name = "身份证号")
    private String cardNo;

    /** 医保卡号 */
    @Excel(name = "医保卡号")
    private String medicalCard;

    /** 紧急联系人 */
    @Excel(name = "紧急联系人")
    private String emergentContact;

    /** 紧急联系人电话 */
    @Excel(name = "紧急联系人电话")
    private String contactMobile;

    /** 人脸图片 */
    @Excel(name = "人脸图片")
    private String faceUrl;

    /** 类别(1：未验证，2：已验证) */
    @Excel(name = "类别(1：未验证，2：已验证)")
    private Long state;

    /** 身份证图片正面 */
    @Excel(name = "身份证图片正面")
    private String cardPic1;

    /** 身份证图片背面 */
    @Excel(name = "身份证图片背面")
    private String cardPic2;

    /** 家庭地址 */
    @Excel(name = "家庭地址")
    private String addr;

    /** 微信openid */
    @Excel(name = "微信openid")
    private String openId;

    /** 是否入住 0-未入住 1-已入住 */
    @Excel(name = "是否入住 0-未入住 1-已入住")
    private Long useful;

    public void setPersonId(Long personId) 
    {
        this.personId = personId;
    }

    public Long getPersonId() 
    {
        return personId;
    }
    public void setCommunityId(Long communityId) 
    {
        this.communityId = communityId;
    }

    public Long getCommunityId() 
    {
        return communityId;
    }
    public void setUserName(String userName) 
    {
        this.userName = userName;
    }

    public String getUserName() 
    {
        return userName;
    }
    public void setMobile(String mobile) 
    {
        this.mobile = mobile;
    }

    public String getMobile() 
    {
        return mobile;
    }
    public void setPassword(String password) 
    {
        this.password = password;
    }

    public String getPassword() 
    {
        return password;
    }
    public void setSex(String sex) 
    {
        this.sex = sex;
    }

    public String getSex() 
    {
        return sex;
    }
    public void setAge(Long age) 
    {
        this.age = age;
    }

    public Long getAge() 
    {
        return age;
    }
    public void setCardNo(String cardNo) 
    {
        this.cardNo = cardNo;
    }

    public String getCardNo() 
    {
        return cardNo;
    }
    public void setMedicalCard(String medicalCard) 
    {
        this.medicalCard = medicalCard;
    }

    public String getMedicalCard() 
    {
        return medicalCard;
    }
    public void setEmergentContact(String emergentContact) 
    {
        this.emergentContact = emergentContact;
    }

    public String getEmergentContact() 
    {
        return emergentContact;
    }
    public void setContactMobile(String contactMobile) 
    {
        this.contactMobile = contactMobile;
    }

    public String getContactMobile() 
    {
        return contactMobile;
    }
    public void setFaceUrl(String faceUrl) 
    {
        this.faceUrl = faceUrl;
    }

    public String getFaceUrl() 
    {
        return faceUrl;
    }
    public void setState(Long state) 
    {
        this.state = state;
    }

    public Long getState() 
    {
        return state;
    }
    public void setCardPic1(String cardPic1) 
    {
        this.cardPic1 = cardPic1;
    }

    public String getCardPic1() 
    {
        return cardPic1;
    }
    public void setCardPic2(String cardPic2) 
    {
        this.cardPic2 = cardPic2;
    }

    public String getCardPic2() 
    {
        return cardPic2;
    }
    public void setAddr(String addr) 
    {
        this.addr = addr;
    }

    public String getAddr() 
    {
        return addr;
    }
    public void setOpenId(String openId) 
    {
        this.openId = openId;
    }

    public String getOpenId() 
    {
        return openId;
    }
    public void setUseful(Long useful) 
    {
        this.useful = useful;
    }

    public Long getUseful() 
    {
        return useful;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("personId", getPersonId())
            .append("communityId", getCommunityId())
            .append("userName", getUserName())
            .append("mobile", getMobile())
            .append("password", getPassword())
            .append("sex", getSex())
            .append("age", getAge())
            .append("cardNo", getCardNo())
            .append("medicalCard", getMedicalCard())
            .append("emergentContact", getEmergentContact())
            .append("contactMobile", getContactMobile())
            .append("faceUrl", getFaceUrl())
            .append("state", getState())
            .append("cardPic1", getCardPic1())
            .append("cardPic2", getCardPic2())
            .append("addr", getAddr())
            .append("openId", getOpenId())
            .append("createTime", getCreateTime())
            .append("remark", getRemark())
            .append("useful", getUseful())
            .toString();
    }
}
